package com.atguigu.mybatis021.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "添加员工信息")
public class AndEmpVo {
    @NotNull(message = "员工信息不能为空")
    @Schema(name = "员工id")
    private Integer id;
    @Schema(name = "员工姓名")
    private String name;
    @Schema(name = "员工年龄")
    private Integer age;
    @Schema(name = "员工邮箱")
    private String email;
    @Schema(name = "员工性别")
    private String gender;
    @Schema(name = "员工地区")
    private String address;
    @Schema(name = "员工薪资")
    private BigDecimal salary;
    @Schema(name = "员工生日")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date birthday;
}
